/*
 * @Author: liangzhuo liangzhuo@chzu.com
 * @Date: 2022-10-21 20:41:38
 * @LastEditors: liangzhuo liangzhuo@chzu.com
 * @LastEditTime: 2022-10-22 11:42:49
 * @FilePath: \hongxinUi\src\api\exam\examJudge.js
 * @Description: 判断题接口
 */
import request from '@/utils/request'

// 分页查询所有判断题（可模糊查询）
export function getExamJudge(data) {
  return request({
      url: '/system/judge/list',
      method: 'get',
      params: data
  })
}

// 添加判断题
export function addExamJudge(data) {
  return request({
      url: '/system/judge',
      method: 'post',
      data: data
  })
}

// 修改判断题
export function updateExamJudge(data) {
  return request({
      url: '/system/judge',
      method: 'put',
      data: data
  })
}

// 根据id批量删除判断题
export function delExamJudge(ids) {
  return request({
      url: `/system/judge/${ids}`,
      method: 'delete'
  })
}

// 导入判断题
export function importExamJudge(data) {
  return request({
      url: '/system/judge/importData',
      method: 'post',
      data: data
  })
}

// 导出判断题
export function exportJudge(data) {
  return request({
      url: '/system/judge/export',
      method: 'post',
      data: data
  })
}